|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.ueberdosis.mp3info.id3v2.FileFrameDataSource
Field Summary |
Fields inherited from interface de.ueberdosis.mp3info.Defines |
DEFAULT_ENCODING, ID3V2_FOOTER_SIZE, ID3V2_FRAME_HEADER_SIZE, ID3V2_HEADER_SIZE, ID3V2_X_HEADER_SIZE, MP3_FRAME_HEADER_SIZE, SUPPORTED_NUMBER_OF_EXTENDED_FLAG_BYTES, testPositions, VERSION |
Constructor Summary | |
FileFrameDataSource(de.ueberdosis.mp3info.id3v2.ID3V2Frame frm,
java.io.RandomAccessFile in)
Creates a DataSource that reads from a file. |
Method Summary | |
byte |
getByte()
delivers the next available byte |
byte[] |
getBytes(long number)
delivers the next available bytes |
long |
getBytesLeft()
informs how many more bytes can be read |
byte[] |
getBytesTo(byte stopByte)
delivers the next bytes until a 0 or the end is encountered |
boolean |
hasMoreBytes()
informs whether there are more bytes than can be read |
void |
reset()
Sets the internal pointer to the start of the data |
void |
seek(long position)
Sets the internal pointer to a given position in the data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileFrameDataSource(de.ueberdosis.mp3info.id3v2.ID3V2Frame frm, java.io.RandomAccessFile in)
frm
- contains the basic informationin
- the file to read fromMethod Detail |
public byte getByte() throws SeekPastEndException
getByte
in interface DataSource
SeekPastEndException
public byte[] getBytes(long number) throws SeekPastEndException
getBytes
in interface DataSource
number
- number of bytes to deliver
SeekPastEndException
public byte[] getBytesTo(byte stopByte)
getBytesTo
in interface DataSource
stopByte
- at what byte to stop
public void reset()
reset
in interface DataSource
public boolean hasMoreBytes()
hasMoreBytes
in interface DataSource
public long getBytesLeft()
getBytesLeft
in interface DataSource
public void seek(long position) throws SeekPastEndException
seek
in interface DataSource
position
- position to set the internal pointer to
SeekPastEndException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |